package bitmap
{
	public class BitmapClipList
	{
		private var _bitmapMovieClips:Vector.<BitmapMovieClip>;
		
		public function BitmapClipList()
		{
			_bitmapMovieClips=new Vector.<BitmapMovieClip>();
		}
		
		public function append(bitmapMovieClip:BitmapMovieClip):void
		{
			_bitmapMovieClips.push(bitmapMovieClip);
		}
		
		public function prepend(bitmapMovieClip:BitmapMovieClip):void
		{
			_bitmapMovieClips.unshift(bitmapMovieClip);
		}

		public function get bitmapMovieClips():Vector.<BitmapMovieClip>
		{
			return _bitmapMovieClips;
		}

		/**
		 *释放资源 
		 */	
		public function dispose():void
		{
			var bmc:BitmapMovieClip;
			while(_bitmapMovieClips.length>0)
			{
				bmc=_bitmapMovieClips.shift();
				bmc.dispose();
				bmc=null;
			}
			bmc=null;
			_bitmapMovieClips = null;
		}
	}
}